package com.zhijiaoyun.service;

import com.alipay.api.domain.AlipayTradePayModel;
import com.zhijiaoyun.model.Order;
import com.zhijiaoyun.model.dto.OrderDto;
import com.zhijiaoyun.model.dto.PageList;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public interface IOrderService {

	void addOrder(Order order);

	void addOrderByCartIds(String orderNum, String cartStrs, long userId);

	Order getOrderByOrderNum(String orderNum);
	
	PageList<OrderDto> getOrderDtoByUserId(Integer pageIndex, int pageSize, long userId, int status);

	void modifyOrder(Order order);

	void addOrderByGoodsIdType(String orderNum, Long goodsId, Integer goodsType, Long userId);
	
	AlipayTradePayModel getAlipayTradePayModelByOrderNum(String orderNum);

	Order getOrderByGoodsId(Long goodsId, int goodsType, long userId);

}
